package com.zara.store.client.view.swing;

import java.io.File;

import javax.swing.filechooser.FileFilter;

public class StoreFileFilter extends FileFilter {

	private String description;

	public StoreFileFilter(String description) {
		super();
		this.description = description;
	}

	@Override
	public boolean accept(File f) {
		return f.isDirectory() || (f.getPath().endsWith(".xml"));
	}

	@Override
	public String getDescription() {
		return description;
	}

}
